
import XRole from "../../XRole";
import ScrollViewItemBase from "../Util/ScrollViewItemBase";

const { ccclass, property } = cc._decorator;
/**单行单列(一般用来做聊天等) */
@ccclass
export default class ExampleLayout1 extends ScrollViewItemBase {

    @property(cc.Label)
    mName: cc.Label = null;

    //tmplId, itemID一样
    updateItem(tmplId, itemID) {
        //根据ID获取对应物品并实例化
        this.itemID = tmplId;
        this.mName.string = "测试 " + tmplId;
        this.node.active = true;
    };
}
